/**
 * 
 */
package com.fitso.model.bean.measure.length;

import java.io.Serializable;
import java.math.BigDecimal;

public class CentiMeter extends Length implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private static final BigDecimal FROM_BASE = BigDecimal.valueOf(10);
	private static final BigDecimal TO_BASE = BigDecimal.valueOf(.1);

	public CentiMeter() {
		super();
	}
	
	public CentiMeter(Integer value){
		super(value);
	}
	
	public CentiMeter(Double value){
		super(value);
	}
	
	public CentiMeter(BigDecimal value){
		super(value);
	}

	public CentiMeter(Length length) {
		super(length);
	}

	protected BigDecimal getToBaseUnitFactor() {
		return FROM_BASE;
	}

	protected BigDecimal getFromBaseUnitFactor() {
		return TO_BASE;
	}

	public String getUnitMark() {
		return "cm";
	}
}